package com.clms.maintain.pojo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_maintain_record")
@ApiModel(value = "record实体",description = "维修纪律实体类")
public class TbRecord {

  @TableId(value = "id",type = IdType.AUTO)
  @ApiModelProperty(value = "id")
  private Integer id;
  @ApiModelProperty(value = "车辆id")
  private long carId;
  @ApiModelProperty(value = "修车厂id")
  private long maintainShopId;
  @ApiModelProperty(value = "金额")
  private String amount;
  @ApiModelProperty(value = "添加时间")
  @DateTimeFormat(pattern="yyyy-MM-dd")
  @JsonFormat(pattern = "yyyy-MM-dd")
  private Date addtime;
  @ApiModelProperty(value = "建议")
  private String remark;

  @TableField(exist = false)
  private TbShop tbShop;


@TableField(exist = false)
private TbCar tbCar;


}
